<?php

use think\facade\Route;

//miss路由，定义404
Route::miss(function () {
    @header("http/1.1 404 not found");
    @header("status: 404 not found");
    exit();
});

//支付回调
Route::group('callback', function () {
    Route::rule('/wechat', 'callback/wechat');
    Route::rule('/alipay', 'callback/alipay');
    Route::rule('/checkSignature', 'callback/checkSignature');
});

//定时
Route::group('index', function () {
    Route::get('/autoBackup', 'index/autoBackup');
    Route::get('/statistics', 'index/statistics');
    Route::get('/orderAutoCancel', 'index/orderAutoCancel');
    Route::get('/tradePaymentTimeout', 'index/tradePaymentTimeout');
    Route::get('/tradeAutoReceipt', 'index/tradeAutoReceipt');
});
